{% extends "admin_base.html" %}

{% block title %}reCAPTCHA Settings{% endblock %}

{% block content %}
<div class="col-9">
	<h3>reCAPTCHA Settings</h3><hr />
	<form action="actions/captcha.php" method="POST">
		<fieldset>
			<div class="form-group">
				<label for="pub_key" class="control-label">Public Key</label>
				<div>
					<input type="text" name="pub_key" class="form-control" value="{{ settings.captcha_pub }}"/>
				</div>
			</div>
			<div class="form-group">
				<label for="priv_key" class="control-label">Private Key</label>
				<div>
					<input type="text" name="priv_key" class="form-control" value="{{ settings.captcha_priv }}"/>
				</div>
			</div>
			<div class="form-group">
				<div>
					<input type="submit" value="Update reCAPTCHA Settings" class="btn btn-primary" />
					<p><small class="text-muted"><em>reCAPTCHA is the system used to help prevent people from abusing the password reset page on PufferPanel. You may use these default provided keys, or you may generate your own at <a href="https://www.google.com/recaptcha">Google reCAPTCHA</a>.</em></small></p>
				</div>
			</div>
		</fieldset>
	</form>
</div>
{% endblock %}

{% block javascript %}{% endblock %}